import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  checkNo: [{ required: true, message: "盘点单号必填项", trigger: "blur" }],
  checkType: [{ required: true, message: "盘点类型必填项", trigger: "change" }],
  status: [{ required: true, message: "盘点状态必填项", trigger: "change" }],
  materialId: [{ required: true, message: "盘点物料必填项", trigger: "change" }],
  warehouseArr: [{ required: true, message: "盘点仓库必填项", trigger: "change" }],
});
